package com.zyf.system.controller.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 张云帆
 * 2025/3/26 14:43
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentAddDto {
    @NotEmpty(message = "科室名称不能为空")
    @ApiModelProperty(value = "科室名称", required = true, example = "测试科室")
    private String name;

    @ApiModelProperty(value = "科室描述", example = "测试科室描述")
    private String description;

    @NotNull(message = "父科室id不能为空")
    @ApiModelProperty(value = "父科室id", example = "1")
    private Integer parentId;
}
